﻿using Kanban.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Kanban.IBLL
{
    public partial interface IUserService : IBaseService<UserId_仓码对应表>
    {
        /// <summary>
        /// 根据用户名密码获取
        /// </summary>
        /// <param name="name">用户名</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        Task<UserId_仓码对应表> GetModelAsync(string name, string pwd);
        Task<Tuple<IList<object>, int>> GetModelsByPageAsync(string search, int pageSize, int pageIndex);
        Task<bool> Save(UserId_仓码对应表 model);
        Task<bool> EditPassword(int id, string password, string newPassword);
    }
}
